<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

  <script>
    alert((1/3) === (1-2/3));  //false
    console.log(Math.abs(1/3-(1-2/3))<0.00000001); //true
    let 王者荣耀="最强王者";
  </script>
</head>
<body>

<!--数组测试-->
<script>
  //保证代码的可读性，尽量使用[]
  var arr = [1,2,3,4,5,'hello',null,true];
  //第二种定义方法
  new Array(1,2,3,4,5,'hello',null);

  // 对象
  var person={
      name:'Tom',
      age:3,
      tags:['js','java','web','...']
  }

</script>


</body>
</html>